package org.teamh.gui.ingame;
import org.teamh.connection.json.command.JsonSender;

public class RecruitCreep {

	private Map map;
	private int creepType;
	private int towerType;
	public RecruitCreep(Map map) {
		this.setMap(map);
	}

	public void recruitCreep() {
		if(ObjectPath.getCreepValue()!=-1){
			JsonSender.createCreep(ObjectPath.sendCreep(ObjectPath.getCreepValue()));
		}
	}


	public int getCreepType() {
		return creepType;
	}

	public void setCreepType(int creepType) {
		this.creepType = creepType;
	}

	public int getTowerType() {
		return towerType;
	}

	public void setTowerType(int towerType) {
		this.towerType = towerType;
	}

	public void setMap(Map map) {
		this.map = map;
	}

	public Map getMap() {
		return map;
	}

}
